﻿@{
    ViewBag.Title = "" + FOResource.UI.CpanelLayout.company + "";
    Layout = "~/Views/Shared/_CpanelLayout.cshtml";
    var com = (List<FOModels.Company.CompanyModels>)ViewBag.CompanyList;
    int i = 1;
}
<script type="text/javascript">
    $(document).ready(function () {
        $(".active-tab").removeClass("active-tab");
        $("a[rel=rel-com]").parent().parent().css("display", "block");
        $("a[rel=rel-com]").parent().parent().prev().addClass("active-tab");
        $("a[rel=rel-com]").addClass("active-tab");
    });
</script>
<div class="cbread_crumb">
    <ul>
        <li><a href="/Cpanel">Control panel</a></li>
        <li class="lastli"><a href="/Company/ShowCase">Công ty</a></li>
    </ul>
</div>
<div class="content-module-heading cf">

    <h3 class="fl">Công ty</h3>
</div>
<!-- end content-module-heading -->

<div class="innerLR">
    <ul>
        @foreach (var a in com)
        {
            if (i % 6 == 0)
            {
            <li style="margin-bottom: 10px; margin-left: 20px; margin-right: 0px; width: 170px;"><a title="@a.Name" href="/Company/Manager/@a.CompanyID">
                <img style="margin-bottom: 10px;border: #3F4551 solid 1px;width: 170px;height: 100px;"  src="@Url.Content("~/Content/upload/images/" + a.CompanyLogo + "")" /></a><a href="/Company/UpdateCompany/@a.CompanyID" class="table-actions-button ic-table-edit"></a><a href="#" class="table-actions-button ic-table-delete"></a></li>
                        
            }
            else
            {
            <li style="margin-bottom: 10px; margin-left: 20px; margin-right: 20px; width: 170px;"><a title="@a.Name" href="/Company/Manager/@a.CompanyID">
                <img style="margin-bottom: 10px;border: #3F4551 solid 1px;width: 170px;height: 100px;"  src="@Url.Content("~/Content/upload/images/" + a.CompanyLogo + "")" /></a><a href="/Company/UpdateCompany/@a.CompanyID" class="table-actions-button ic-table-edit"></a><a href="#" class="table-actions-button ic-table-delete"></a></li>
            }
            i = i + 1;
        }
    </ul>

</div>
<!-- end content-module-main -->
